package com.aidex.system.domain;

import com.aidex.common.annotation.Excel;
import com.aidex.common.core.domain.BaseEntity;
import com.aidex.common.utils.log.annotation.FieldRemark;
import com.aidex.common.utils.log.annotation.LogField;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
@Api(tags = "对象存储")
public class SysOss extends BaseEntity {

    @ApiModelProperty("文件名称")
    @Excel(name = "文件名称")
    @LogField
    @FieldRemark(name = "文件名称" , field = "fileName")
    private String fileName;

    @ApiModelProperty("文件地址")
    @Excel(name = "文件地址")
    @LogField
    @FieldRemark(name = "文件地址" , field = "url")
    private String url;

    @ApiModelProperty("文件大小")
    @Excel(name = "文件大小")
    @LogField
    @FieldRemark(name = "文件大小" , field = "size")
    private Long size;

    @ApiModelProperty("文件类型")
    @Excel(name = "文件类型")
    @LogField
    @FieldRemark(name = "文件类型" , field = "contentType")
    private String contentType;
}